<?php
$concept = new common_region_concept();
$regionList = $concept->fetchAll();
?>
<div id="mainDiv">
	<div id="tree">
		<div id="treeData">			
			<h1><?php echo $this->language->load('System');?></h1>
			<hr/>
			<div class="item">
				<ul>
					<li><a href="<?php echo $this->url('system/setting/index');?>"><?php echo $this->language->load('Setting');?></a></li>
					<li><a href="<?php echo $this->url('system/user/index');?>"><?php echo $this->language->load('User');?></a></li>
					<li><a href="<?php echo $this->url('system/currency/index');?>"><?php echo $this->language->load('Currency');?></a></li>
					<li><a href="<?php echo $this->url('system/logs/index');?>"><?php echo $this->language->load('Logs');?></a></li>
					<li><a href="<?php echo $this->url('system/safeguard/index');?>"><?php echo $this->language->load('Safeguard');?></a></li>
					<li><a href="<?php echo $this->url('system/filesystem/index');?>"><?php echo $this->language->load('File System');?></a></li>
				</ul>
			</div>
			<hr/>
			<div class="item">
				<ul>
					<li>
						<a href="<?php echo $this->url('system/region/index');?>"><?php echo $this->language->load('Region');?></a>
						<em>(<?php echo count($regionList);?>)</em>						
						<ul class="sub">
							<?php foreach($regionList AS $row) { ?>
							<li><a href="<?php echo $this->url('system/region/city', array('province_id' => $row->getId()));?>"><?php echo $row->getName();?>(<em><?php echo $row->getEname();?></em>)</a></li>
							<?php } ?>
						</ul>
					</li>
				</ul>
			</div>
			<?php echo $this->render('include/submenu.phtml');?>
		</div>
	</div>
	<div id="switch"></div>
	<div id="frame"><iframe frameborder="0" scrolling="yes" src="<?php echo $this->url('system/index');?>" id="mainFrame" name="mainFrame"></iframe></div>
</div>
	

